<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="../js/vue.js"></script>
	</head>
	<body>

		<div id="app">

			<ul>
				<p>您的姓名是{{name}}</p>
				<input v-model="name">
				<button @click="clicknameChange">{{datas.name}}</ul>
			</ul>
		</div>
		<script>
			var vue = new Vue({
				el: "#app",
				data: {
					name: "helloworld",
					datas: {
						name: "小明",
						sa: "18"
					}
				},
				methods: {
					clicknameChange: function() {
						this.datas.name = "你点我试试看"
						
						
						let vm = this
						setTimeout(function() {
							vm.datas.name = "我已经修改了名称"
						}, 111)

					},checkeName:function(){
						
						
					}
				}

			})
		</script>
	</body>
</html>
